package AoppractiseDemo;

import AoppractiseDemo.config.springconfig;
import AoppractiseDemo.dao.bookdao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext ctx=new AnnotationConfigApplicationContext(springconfig.class);
        bookdao bookdao1=ctx.getBean(bookdao.class);
        System.out.println(bookdao1);
        bookdao1.update();
    }
}
